package org.ccay.security.authc.credential;

import java.io.Serializable;
import java.util.Date;

public class RetryLimitVO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 20171116L;

	/**
	 * 重试次数
	 */
	int retryCount;

	/**
	 * 最后重试时间
	 */
	Date lastTryTime ;
	
	
	public RetryLimitVO() {
		this.retryCount = 0;
		this.lastTryTime = new Date();
	}
	
	public int incrementAndGet(){
		retryCount++;
		return retryCount;
	}
	public void touch(){
		this.lastTryTime = new Date();
	} 
	public int getRetryCount() {
		return retryCount;
	}

	public Date getLastTryTime() {
		return lastTryTime;
	}
}
